import { useRequire } from "@/api/instance";

export const clientDocInsertApi = (id: string, index: string, data: string, type?: string) => {
  return useRequire("/api/client/doc/insert", { id, index, data, type });
};

export const clientDocUpdateApi = (
  id: string,
  index: string,
  docId: string,
  data: string,
  type?: string
) => {
  return useRequire("/api/client/doc/update", { id, index, docId, data, type });
};

export const clientDocDeleteBatchApi = (
  id: string,
  index: string,
  docIds: Array<string>,
  type?: string
) => {
  return useRequire("/api/client/doc/deleteBatch", { id, index, docIds, type });
};
